package com.winning.bdu.dl.quartz.manage.service;

import com.winning.bdu.dl.quartz.entity.QuartzJob;

/**
 * @Author: shipengfei
 * @Description:
 * @Date: 2019-06-03 17:42
 */
public interface IJobManageService {

    /**
     * 添加定时任务
     *
     * @param quartz
     */
    void saveJob(QuartzJob quartz);

    /**
     * 触发任务
     *
     * @param jobName
     * @param jobGroup
     */
    void triggerJob(String jobName, String jobGroup);

    /**
     * 停止定时任务
     *
     * @param jobName
     * @param jobGroup
     */
    void pauseJob(String jobName, String jobGroup);

    /**
     * 恢复定时任务
     * @param jobName
     * @param jobGroup
     */
    void resumeJob(String jobName, String jobGroup);
}
